package com.example.zhyq.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.mvvm.BaseViewFragment
import com.example.zhyq.R
import com.example.zhyq.databinding.FragmentServiceBinding


class ServiceFragment : BaseViewFragment<FragmentServiceBinding>() {
    override fun initView() {

        binding.car.setOnClickListener {
            ARouter.getInstance().build("/app/ParkActivity").navigation()
        }

        binding.serviceRepair.setOnClickListener {
            start("/app/RepairActivity")
        }

        binding.serviceVisitor.setOnClickListener {
            start("/app/VisitActivity")
        }

        binding.serviceAttendance.setOnClickListener {
            start("/app/SignListActivity")
        }

        binding.serviceDevide.setOnClickListener {
            start("/app/DevicesActivity")
        }

        binding.servicePatrol.setOnClickListener {
            start("/app/PointActivity")
        }

        binding.serviceTask.setOnClickListener {
            start("/app/TaskActivity")
        }

        binding.btn4.setOnClickListener {
            start("/app/AddPayProjectActivity")
        }
    }

    override fun initData() {

    }

    fun start(url:String) {
        ARouter.getInstance().build(url).navigation()
    }
}